<? include ("../init.php") ?>
<? include ("../header.php") ?>
<? include ("../menu.php") ?>
<? include ("submenu.php") ?>

<div id = "body">

<h1>+&nbsp;<?_l('Add News & Event')?></h1>
<div class = "clear"></div>


<form method="post" action="add.php" class = "form" enctype="multipart/form-data">
  <!--<div class = "field"><label><?_l('topic')?></label><input type = "text" name = "topic" class = "input size2"></div>-->
  <div class = "field"><label><?_l('title')?></label><input type = "text" name = "title" class = "input size2" /></div>
  <div class = "field"><label><?_l('date')?></label><input type = "text" name = "date" class = "input size1" id="datepicker"></div>
  <div class = "field"><label><?_l('image')?></label><input type = "file" name = "news_img" class = "input size1" > * ขนาด 220x160 pixel</div>
  <div class = "field"><label><?_l('detail')?></label><textarea name = "detail"></textarea></div>
  <hr>
  <div class = "field"><label></label><input type = "submit" value = "<?=__l('add')?>" class = "btn">&nbsp;<a href = "#" class = "btn" onclick="javascript:history.back(1)"><?_l('cancel')?></a></div>
</form>

</div>

<style>
  .form label {
    width:80px;
  }
</style>
<script>
  $(document).ready(function(){
    $('#datepicker').datepicker({
      dateFormat: 'yy-mm-dd',
      changeMonth: true,
      changeYear: true
    });
  });
</script>
</div>
<? include "../footer.php" ?>